package edu.nyupoly.wzj;

public class Cell {
	
	public Mark cellMark;
	public int row, column;
	
	private Player owner;
	
	public boolean claimed;
	

	public Cell(int row, int col) {
		this.row = row;
		this.column = col;
		this.cellMark = Mark.EMPTY;
		this.owner = null;
		this.claimed = false;
	}
	
	public Cell(int row, int col, Mark mark, Player player) {
		this.row = row;
		this.column = col;
		this.cellMark = mark;
		this.owner = player;
		this.claimed = true;
	}
	
	public void setEmpty() {
		this.cellMark = Mark.EMPTY;
		this.owner = null;
		this.claimed = false;
	}
	
	public void setOwner(Player player) {
		this.owner = player;
	}
	
	public Player getOwner() {
		return this.owner;
	}

}
